﻿using System;
using System.Collections.Generic;
using Gameplay.PVE.Utils;
using RootMotion.FinalIK;
using UnityEngine;
using UnityEngine.PlayerLoop;
using Yoozoo.Libs;

namespace Gameplay.PVE.Survivor
{
    /// <summary>
    /// 被冰冻
    /// </summary>
    public class FreezeAction : ControlAction
    {
        private int state = 0;
        private float startTime;

        public override void Start()
        {
            startTime = TimeManager.time;
            state = 0;
            //unit.Play("Idle");
            unit.SetAnimatorSpeed(0);
        }

        public override void Update()
        {
        }

        public override void End()
        {
            unit.SetAnimatorSpeed(1);
            if (unit.isDead)
            {
                return;
            }
        }
    }
}
